package com.itheima.mapper;

import com.itheima.pojo.OperateLog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface LogMapper {

    /**
     * 查询操作日志
     */
    @Select("select ol.*,e.name operateEmpName from operate_log ol join emp e on ol.operate_emp_id = e.id")
    List<OperateLog> page();
}
